<%@ Page language="c#" Codebehind="ForumCategoriesEdit.aspx.cs" AutoEventWireup="True" Inherits="sow.EditForumCategories" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>EditPartner</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
	</HEAD>
	<body>
		<h2><FONT color="#0066ff">ForumCategories Table</FONT></h2>
		<form id="Form1" method="post" runat="server">
			<HR color="#006699" SIZE="10">
			&nbsp;<asp:datagrid id="DataGrid1" runat="server" CellPadding="3" BackColor="White" BorderWidth="1px"
				BorderStyle="None" BorderColor="#CCCCCC" Width="397px" AutoGenerateColumns="False">
				<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedItemStyle>
				<ItemStyle ForeColor="#000066"></ItemStyle>
				<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#006699"></HeaderStyle>
				<FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
				<Columns>
					<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Update" CancelText="Cancel" EditText="Edit"></asp:EditCommandColumn>
					<asp:TemplateColumn HeaderText="CategoryID">
						<ItemTemplate>
							<asp:Label id="Label1" runat="server" Width="29px">
								<%# DataBinder.Eval(Container, "DataItem.CategoryID") %>
							</asp:Label>
						</ItemTemplate>
						<EditItemTemplate>
							<asp:Label id="lblCategoryID" runat="server" Width="29px" Text='<%# DataBinder.Eval(Container, "DataItem.CategoryID") %>'>
							</asp:Label>
						</EditItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="CategoryName">
						<ItemTemplate>
							<asp:Label id="Label3" runat="server" Width="123px">
								<%# DataBinder.Eval(Container, "DataItem.CategoryName") %>
							</asp:Label>
						</ItemTemplate>
						<EditItemTemplate>
							<asp:Label id="Label4" runat="server" Width="128px">
								<%# DataBinder.Eval(Container, "DataItem.CategoryName") %>
							</asp:Label>
						</EditItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="ForumID">
						<ItemTemplate>
							<asp:Label id="Label5" runat="server" Width="77px">
								<%# DataBinder.Eval(Container, "DataItem.ForumID") %>
							</asp:Label>
						</ItemTemplate>
						<EditItemTemplate>
							<asp:DropDownList id=drpForumName runat="server" Width="121px" SelectedIndex='<%# GetForumIDIndex(DataBinder.Eval(Container.DataItem, "ForumID")) %>' DataSource="<%# dsForum %>" DataTextField="ForumName" DataValueField="ForumID">
							</asp:DropDownList>
						</EditItemTemplate>
					</asp:TemplateColumn>
				</Columns>
				<PagerStyle HorizontalAlign="Left" ForeColor="#000066" BackColor="White" Mode="NumericPages"></PagerStyle>
			</asp:datagrid><STRONG>&nbsp;
				<asp:label id="lblMessage" runat="server" Width="485px" Height="20px"></asp:label>
				<HR color="#006699" SIZE="10">
				<P></P>
				<P>
				</P>
				<P>
				&nbsp;</STRONG></P>
		</form>
	</body>
</HTML>
